export interface GameRegion {
  id: number;
  name: string;
  alias: string;
  value: string | number;
  children?: GameRegion[];
  selected: boolean;
  isShow: boolean;
  keywords: string;
  searchList: GameRegion[];
}

export interface PriceConfigOptions {
  select: PriceOptions[];
}

export interface PriceOptions {
  name: string;
  start: number;
  end: number;
}

export interface GameAttr {
  id: number;
  type_id: number;
  type: 'input_text' | 'input_num' | 'radio' | 'select';
  attr_name: string;
  attr_desc: string;
  attr_value?: string;
  btn_name: string;
  description?: string;
  is_must: 0 | 1;
  is_search: 0 | 1;
  is_show_word: 0 | 1;
  is_title: 0 | 1;
  key_name: string; //UNUSE
  key_value: string; //UNUSE
  limits: number;
  word_end: string;
  sort: number;
  sortshow: number;
  update_time: string; //2023-01-31 165500
}

export interface ProductItemType {
  verify_account: number;
  id: number;
  style_type: string;
  goods_id: number;
  goods_no: string;
  goods_name: string;
  number_of_times: number;
  collection_nums: number;
  title_name: string;
  show_goods_own_attr: string;
  goods_price: string;
  goods_old_price: string;
  game_id: number;
  looks: number;
  goods_p_name: string;
  goods_pic: string;
  goods_status: number;
  game_type: string;
  once_num: number;
  face_confirm: 0 | 1;
  admin_top_time: string;
  create_time: string;
  update_time: string;
  user_top_flag: 0 | 1;
  is_hetong: 0 | 1;
  goods_form: string;
  partner_flag: 0 | 1;
  is_merchant: 0 | 1;
  goods_stock: number;
  is_once?: number;
  data_tag: { [key: string]: { name: string; pic: number } };
  goods_own_attr: {
    id: number;
    game_id: number;
    goods_id: number;
    attr_name: string;
    attr_value: string;
    status: 0 | 1;
  }[];
  good_goods_remark?: string;
  value_goods_remark?: string;
  yuanbao: {
    yuanbao_desc: {
      top: string;
      bottom: string;
    };
    is_yuanbao: 0 | 1;
  };
  jiaoyi_type?: string;
  attr_value: string;
  attr_all_value: {
    id: number;
    game_id: number;
    goods_id: number;
    attr_name: string;
    attr_value: string;
    status: 0 | 1;
  }[];
  pic_numbers: number;
  safe_type: 'safe_no' | 'safe_yes' | 'already' | 'no'; //是否支持购买包赔
  is_show_compensate_state: 0 | 1; //是否显示已买包赔
  member_name: string; //卖家名
  create_user_id: number; //卖家ID
  member_logo: string; //卖家头像
  is_show_inlet: 0 | 1; //显示主页
  is_seckill: 0 | 1; //是否秒杀
  sk_dt_e: string; //秒杀结束时间 YYYY-MM-DD HH:mm:ss
  seckill_price: string; //秒杀价
  qg_price_min: string; //求购最低价
  qg_price_max: string; //求购最高价
  sales_num: number; //已售数量(有规格的商品)
  zb_time_begin: string; //直播时间
  zb_time_end: string; //直播时间
  zb_user_name: string; //主播名
  zb_user_platform: string; //直播平台
  zb_wx: string; //主播微信
  bonus_price?: number; //奖金
  is_hire_purchase?: 0 | 1; //是否分期
  goods_name_new: string;
  is_transaction_compensation?: 0 | 1; //是否包赔认证
}
